package com.tueye.entity;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 
 * 文章专题表
 * 
 * 
 * @author hanxiaowei
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "tueye_articletopic")
public class ArticleTopic extends BaseEntity {

	private String articleTpTitle; // 专题名称
	private String articleTpicInstr;// 专题简介
	private String articleTpUrl; // 专题页地址
	private TopicType topicType;
    private List<Topics> topics;
	
	public String getArticleTpTitle() {
		return articleTpTitle;
	}

	public void setArticleTpTitle(String articleTpTitle) {
		this.articleTpTitle = articleTpTitle;
	}

	public String getArticleTpicInstr() {
		return articleTpicInstr;
	}

	public void setArticleTpicInstr(String articleTpicInstr) {
		this.articleTpicInstr = articleTpicInstr;
	}

	public String getArticleTpUrl() {
		return articleTpUrl;
	}

	public void setArticleTpUrl(String articleTpUrl) {
		this.articleTpUrl = articleTpUrl;
	}

	@ManyToOne
	public TopicType getTopicType() {
		return topicType;
	}

	public void setTopicType(TopicType topicType) {
		this.topicType = topicType;
	}
	@OneToMany(mappedBy = "articleTopic", cascade = CascadeType.ALL)
	public List<Topics> getTopics() {
		return topics;
	}

	public void setTopics(List<Topics> topics) {
		this.topics = topics;
	}

	
}